<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet
	version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

	<xsl:output
		encoding="utf-8"
		indent="yes"
		doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
		doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
		omit-xml-declaration="yes"
		method="xml" />
		
	<xsl:param name="userId" select="@user-id" />
	<xsl:param name="typeName" select="data/response/@type-name" />
	<xsl:param name="objectId" select="data/response/@object-id" />
	<xsl:param name="baseURI" select="/data/@base-uri" />
	
	<xsl:template match="data/response">
		<ul id="photos_browser_list">
			<xsl:apply-templates select="object[@type='photo']" />
		</ul>
	</xsl:template>
	
	<xsl:template match="object[@type='photo']">
		<li id="list_photo_{@id}">
			<a href="{$baseURI}/photo/{@id}">
				<img src="{$baseURI}/thumb_50_50{property[@name='photo']/value}" alt="" />
			</a>
		</li>
	</xsl:template>
	
</xsl:stylesheet>